﻿@model IEnumerable<ToWaTimeReportMVC4.Models.ProjectJob>

@{
    ViewBag.Title = "Rapport";
}

<h2>Rapport</h2>

<p>
    @ViewBag.Consultant
</p>
<table>
    <tr>
        <th>
            @Html.DisplayNameFor(model => model.projectName)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.hours)
        </th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.projectName)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.hours)
        </td>
    </tr>
}
<tr>
    <td>Total Hours Worked: @ViewBag.TotalHours</td>
    <td>Overtime: @ViewBag.Overtime (@ViewBag.NormalTime h normal weak)</td>
</tr>
<tr>
    <td>
        @Html.ActionLink("Back to List", "Index")
    </td>
</tr>
</table>
